**********************<?php
Yii::import('application.models._base.BaseAmanCollege');

class AmanCollege extends BaseAmanCollege {

    public static function model($className = __CLASS__) {
        return parent::model($className);
    }

    public static function listCollegeName() {


        $models = AmanCollege::model()->findAll();

        // format models resulting using listData     
        $list = CHtml::listData($models, 'id', 'college_name');

        return $list;
    }

    public static function listCollegeAddress() {

        $models = AmanCollege::model()->findAll(array());

        // format models resulting using listData     
        $list = CHtml::listData($models, 'id', 'college_address');

        return $list;
    }
public function attributeLabels() {
		return array(
			'id' => Yii::t('app', 'ID'),
			'college_name' => Yii::t('app', 'College Name'),
			'college_address' => Yii::t('app', 'College Address'),
			'college_address1' => Yii::t('app', 'College Address1'),
			'college_state' => Yii::t('app', 'College State'),
			'hod_title' => Yii::t('app', 'Title'),
			'hod_first_name' => Yii::t('app', 'First Name'),
			'hod_last_name' => Yii::t('app', 'Last Name'),
			'hod_email' => Yii::t('app', 'Email'),
			'hod_phone_number_office' => Yii::t('app', 'Phone Number Office'),
			'hod_phone_number_residence' => Yii::t('app', 'Phone Number Residence'),
			'hod_mobile_number' => Yii::t('app', 'Mobile Number'),
			'hod_fax_number' => Yii::t('app', 'Fax Number'),
			'administrative_phone_number' => Yii::t('app', 'Administrative Phone Number'),
			'administrative_fax_number' => Yii::t('app', 'Administrative Fax Number'),
			'administrative_email' => Yii::t('app', 'Administrative Email'),
			'affilating_university' => Yii::t('app', 'Affilating University'),
			'regulatory_authority' => Yii::t('app', 'Regulatory Authority'),
			'student_total' => Yii::t('app', 'Student Total'),
		);
	}

}